package com.start.shop.api.vo.coupon;

import java.util.List;

import com.github.pagehelper.PageInfo;
import com.start.shop.common.constant.PageVo;
import com.start.shop.modules.repository.entity.Coupon;

import lombok.Data;

@Data
public class CouponVoPage {
	private List<CouponVo> couponList;
	private PageVo page;
	public static CouponVoPage setData(List<CouponVo> couponVoList, PageInfo<Coupon> couponPage) {
		
		CouponVoPage couponVoPage= new CouponVoPage();
		
		couponVoPage.setCouponList(couponVoList);
		couponVoPage.setPage(PageVo.setData(couponPage));
		
		return couponVoPage;
	}
}
